/*  */
/* 根据用户id查询可以管理的用户列表 */
export const userList = (data) => {
  if (data.name == undefined && data.userName == undefined) {
    return axios({
      url: `/rbac/user/list?page=${data.page}&size=${data.size}&type=${data.type}`,
      method: 'get'
    })
  }else{
        return axios({
      url: `/rbac/user/list?page=${data.page}&size=${data.size}&type=${data.type}&name=${data.name}&userName=${data.userName}`,
      method: 'get'
    })
  }
}
